﻿using Command;
using QFramework;
using UnityEngine;

namespace ViewController.Gameplay
{
    public class AttackPlayer : ShootingEditor2DController
    {
        private void OnCollisionEnter2D(Collision2D col)
        {
            if (col.gameObject.CompareTag("Player")) this.SendCommand<HurtPlayerCommand>();
        }
    }
}